<template>
  <div class="admin-container">
    <h1>比赛管理系统</h1>
    <div class="button-group">
      <router-link to="/admin/school" class="admin-button">学校管理</router-link>
      <router-link to="/admin/match" class="admin-button">赛程管理</router-link>
      <router-link to="/admin/player" class="admin-button">参赛选手管理</router-link>
      <router-link to="/admin/draw" class="admin-button">抽签管理</router-link>
      <router-link to="/admin/score" class="admin-button">成绩管理</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<style scoped>
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-button {
  padding: 10px 20px;
  background-color: #42b983;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.admin-button:hover {
  background-color: #33a06f;
}
</style>